package com.atguigu.shiro.dao;

import com.atguigu.shiro.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUser record);

    //创建一个用户
    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser select(@RequestParam("record")SysUser record);

    //通过街道名 查询
    List<SysUser> listByStreet(@Param("street")String street);



}